.include	"include/definitions_region.asm"
.include	"include/definitions_registers.asm"
.include	"include/definitions_text.asm"
.include	"include/definitions_CO.asm"
.include	"include/definitions_maps.asm"
.include	"include/definitions_units.asm"
.include	"include/definitions_terrain.asm"
.include	"include/definitions_players.asm"
.include	"include/definitions_sound.asm"
.include	"include/definitions_battle_maps.asm"
.include	"include/definitions_weather.asm"

.include	"include/definitions_skills_rank.asm"
.include	"code/skills/Skill_Stats.asm"

.loadtable 	"data/font/Main/ASCII_Font_Table.tbl"

; -----------------------------------------------------------------------------------------------------------------

; sound_data.sdat

	.open 		"data/Blank_Data.bin", "mod/data/data/sound_data.sdat", 0x0	
	
		.import 	"data/sound/AWDS.sdat"	
		
	.close

; -----------------------------------------------------------------------------------------------------------------

; header.bin

	.open 		"original/header.bin", "mod/header.bin", 0x0
	.NDS
	.ARM
	
; Increase the size of the FNT & FAT Tables in the NDS Header
	
	.org 0x44				;FNT Table Size
		.dw	0x23D5 + 0xB
		
	.org 0x4C				;FAT Table Size
		.dw	0x3870 + 0x10
				
	.org 0x54				; Size of y9.bin
		.dw	0x1000
		
	.close

; -----------------------------------------------------------------------------------------------------------------

; banner.bin

	.open 		"original/banner.bin", "mod/banner.bin", 0x0	
	
		.import 	"data/banner/Banner.bin"	
		
	.close

; -----------------------------------------------------------------------------------------------------------------

; y9.bin

	.open 		"original/y9.bin", "mod/y9.bin", 0x0	
	.NDS
	.ARM
		
		.include 	"data/overlays/overlay_headers.asm"	
		
	.close

; -----------------------------------------------------------------------------------------------------------------

; overlay_0007.bin

	.open 		"data/overlays/overlay_0007.bin", "mod/overlay/overlay_0007.bin", 0x0	
	
.org 0x20		
		.include	"data/Overlay_7.asm"
		
	.close

; -----------------------------------------------------------------------------------------------------------------

; Replace Files in Folders

; Intro Developers
	.include 	"data/graphics/Intro_Developers.asm"

; Map Categories
	.include 	"data/graphics/Map_Categories.asm"

; Japan Buttons
	;.include 	"data/graphics/Japan_Buttons.asm"
	
; English Buttons
	.include 	"data/graphics/English_Buttons.asm"
	
; History Images
	.include 	"data/graphics/History_Images.asm"
	
; Dossier Info
	.include 	"data/graphics/Dossier_Info.asm"
	
; Rank Skills
	.include 	"data/graphics/Rank_Skills.asm"
	
; Credits
	.include 	"data/graphics/Credits.asm"
	
; Unit Graphics
	.include 	"data/graphics/Units_2.asm"
	
; Battle Animations
	.include 	"data/graphics/Battle_Animations.asm"
	
; Gallery
	.include 	"data/graphics/Gallery.asm"
	
; -----------------------------------------------------------------------------------------------------------------

; Overlay_0000.bin

	.open 		"original/overlay/overlay_0000.bin", "mod/overlay/overlay_0000.bin", 0x0
	.NDS
	.ARM

; Japan Buttons
	;.include	"data/graphics/Japan_Buttons/Battle_Buttons.asm"
	
; English Buttons
	.include	"data/graphics/English_Buttons/Battle_Buttons.asm"
	
; GUI Tiles
	.include	"data/graphics/GUI.asm"

; Text
	.include 	"data/text/text_pointers.asm"

	.include 	"data/text/Sound_Room/Sound_Room_Text_Other.asm"
	
; Font
	.include	"data/font/Main/ASCII_Font_Widths.asm"
	.include	"data/font/Main/ASCII_Font_Pointers.asm"
	.include	"data/font/Main/ASCII_Font_Data.asm"
	
; Maps
	;.include	"data/maps/Header/List_Headers.asm"
	
; Terrain Boost
	.include	"data/COs/Terrain_Boost/Terrain_Jake.asm"	
	.include	"data/COs/Terrain_Boost/Terrain_Koal.asm"
	.include	"data/COs/Terrain_Boost/Terrain_Kindle.asm"

; Movement Cost
	.include	"data/COs/Movement_Cost/Default_Movement.asm"
	.include	"data/COs/Movement_Cost/Prairie_Dog_Movement.asm"
	.include	"data/COs/Movement_Cost/Pathfinder_Movement.asm"
	.include	"data/COs/Movement_Cost/Prairie_and_Pathfinder_Movement.asm"
	.include	"data/COs/Movement_Cost/Free_Movement.asm"
	
; Rank Skills
	.include	"data/data_tables/Rank_Skills/rank_selection.asm"
	
; Sound Effects
	.include	"code/sound/Foot_Units_Movement.asm"
		
	.close
	
; -----------------------------------------------------------------------------------------------------------------

; Overlay_0002.bin

	.open 		"original/overlay/overlay_0002.bin", "mod/overlay/overlay_0002.bin", 0x0
	.NDS
	.ARM

; Battle_Exclamations	
	.include	"code/battle_exclamations/Happy_Quotes.asm"
	.include	"code/battle_exclamations/Angry_Quotes.asm"
	
	.close

; -----------------------------------------------------------------------------------------------------------------

; Overlay_0005.bin

	.open 		"original/overlay/overlay_0005.bin", "mod/overlay/overlay_0005.bin", 0x0
	.NDS
	.ARM
	
; CO Order
	.include	"data/data_tables/CO_Order/Modes/color_edit.asm"
	.include	"data/data_tables/CO_Order/Modes/edit_display.asm"
	
; Sound Room
	.include	"data/data_tables/Sound_Room/music_order.asm"
	.include	"data/data_tables/Sound_Room/co_offsets.asm"
	
; Credits
	.include	"data/data_tables/Credits/Table_Pointer_Offset.asm"
	.include	"data/data_tables/Credits/Font_Table_Original.asm"
	
	.close
	
; -----------------------------------------------------------------------------------------------------------------

; arm9.bin

	.open 		"original/arm9.bin", "mod/arm9.bin", 0x0
	.NDS
	.ARM
		
; Overlays
	.include 	"code/overlays/startup_overlays.asm"

; CO Abilities
	.include 	"data/COs/abilities/CO_Abilities.asm"
	
; CO Tag
	.include 	"data/COs/tag_partners/CO_Partners.asm"
		
; CO Skills
	.include	"code/skills/Original_Skills/Hidden_HP.asm"
	.include	"code/skills/Original_Skills/Piercing_Vision.asm"
	.include	"code/skills/Original_Skills/Double_Terrain_Stars.asm"
	.include	"code/skills/Modified_Skills/Firepower_Increase.asm"
	.include	"code/skills/Modified_Skills/Movement_Boost.asm"
	.include	"code/skills/Modified_Skills/Defense_Increase_Direct_Indirect.asm"
	.include	"code/skills/Modified_Skills/Defense_Increase_Tag_Transport.asm"
	.include	"code/skills/Modified_Skills/Damage_From_Cannons.asm"
	.include	"code/skills/Modified_Skills/Damage_From_Silos.asm"
	.include	"code/skills/Modified_Skills/Terrain_Firepower.asm"
	.include	"code/skills/Modified_Skills/Stealth_Firepower.asm"
	.include	"code/skills/Original_Skills/Partner_Boost.asm"
	.include	"code/skills/Original_Skills/Movement_Cost.asm"
	.include	"code/skills/Modified_Skills/Tower_Firepower.asm"
	.include	"code/skills/Modified_Skills/Vision_Increase.asm"
	.include	"code/skills/Modified_Skills/Repair_Increase.asm"
	.include	"code/skills/Modified_Skills/Capture_Increase.asm"
	.include	"code/skills/Modified_Skills/Fuel_Consumption.asm"
	.include	"code/skills/Modified_Skills/Cost_Reduced.asm"
	.include	"code/skills/Modified_Skills/Damage_To_Funds.asm"
	.include	"code/skills/Modified_Skills/Increase_Funds.asm"
	.include	"code/skills/Modified_Skills/Luck_Damage.asm"
	.include	"code/skills/Modified_Skills/Fill_Meter_Quicker.asm"
	.include	"code/skills/Modified_Skills/Counter_First.asm"
	.include	"code/skills/Modified_Skills/Deploy_City.asm"

	.include 	"code/abilities/Terrain_Star_Reduction.asm"
	
; CO Powers
	.include 	"code/co_powers/powers/No_Power.asm"
	.include 	"code/co_powers/powers/Blizzard.asm"
	
	.include	"code/co_powers/powers/common/Weather_Change.asm"

; Common Code	
	.include	"code/common/Check_Skills_Equipped.asm"
	.include	"code/common/Check_Unit_Type.asm"
	.include	"code/common/Get_Random_Number.asm"
	
; CO Dossier
	.include	"data/data_tables/Units/unit_dossier_order.asm"
	
; CO Order
	.include	"data/data_tables/CO_Order/Modes/vs_mode.asm"
	.include	"data/data_tables/CO_Order/Modes/war_room.asm"
	.include	"data/data_tables/CO_Order/Modes/combat.asm"

; Unit Bonus
	.include	"code/co_powers/unit_bonus/No_Bonus.asm"
	.include	"code/co_powers/unit_bonus/Resupply.asm"
	.include	"code/co_powers/unit_bonus/Repair_2HP.asm"
	.include	"code/co_powers/unit_bonus/Repair_5HP.asm"
	.include	"code/co_powers/unit_bonus/Non_Infanty_Move.asm"

; Unit Highlight
	.include	"code/co_powers/unit_highlight/All_Units.asm"
	.include	"code/co_powers/unit_highlight/Direct_Combat.asm"
	.include	"code/co_powers/unit_highlight/Indirect_Combat.asm"
	.include	"code/co_powers/unit_highlight/Foot_Units.asm"
	.include	"code/co_powers/unit_highlight/Non_Foot_Units.asm"
	.include	"code/co_powers/unit_highlight/Air_Units.asm"
	
; Default Power Bonus
	.include	"code/co_powers/default_bonuses/default_bonuses.asm"

; Weather
	.include	"code/weather/snow_fuel.asm"
	;.include	"code/weather/rain_vision.asm"
	;.include	"code/weather/sandstorm_range.asm"
	
; Map
	;.include	"code/map/Map_Name_Top.asm"
	
; History
	.include	"data/graphics/History/Offsets.asm"
	
; Rank Skills
	.include	"data/graphics/Rank_Skills/Offsets.asm"
	
; CO Dossier
	.include	"data/graphics/Dossier_Info/Offsets.asm"
	
; Unit Graphics
	.include	"data/graphics/Units_1.asm"
	
; Battle Maps
	.include	"data/data_tables/Battle_Maps/Items_Original.asm"
	;.include	"data/data_tables/Battle_Maps/Items_Custom.asm"
		
; CO Names
	.include	"data/graphics/COs/Name_Images.asm"

; Shared Palettes
	.include	"data/graphics/Shared_Palettes.asm"
	
; Custom Code
	.include	"code/Custom_Code.asm"
	
	.close

; -----------------------------------------------------------------------------------------------------------------

; mb_combat_sgn.srl (Combat Download)

	.open 		"original/data/boot/mb_combat_sgn.srl", "mod/data/boot/mb_combat_sgn.srl", 0x0	
	.NDS
	.ARM

; CO Order	
	.include	"data/data_tables/CO_Order/Modes/combat_download.asm"

; Japan Buttons	
	;.include 	"data/graphics/Japan_Buttons/Combat_Demo/combat_buttons.asm"
	
; English Buttons	
	.include 	"data/graphics/English_Buttons/Combat_Demo/combat_buttons.asm"
		
	.close

; -----------------------------------------------------------------------------------------------------------------